<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>残疾人就业服务平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Swiper库 -->
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
    <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
    <link rel="stylesheet" href="styles/readAloud.css">
    <script src="js/readAloud.js"></script>

    <!-- 配置Tailwind -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CFC9',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#333F51',
                        'neutral-light': '#E5E6EB'
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 4px 12px rgba(0, 0, 0, 0.05)',
                        'card-hover': '0 8px 24px rgba(22, 93, 255, 0.15)',
                    }
                }
            }
        }
    </script>

    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .search-focus {
                @apply focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-card-hover hover:-translate-y-1;
            }
            .nav-active {
                @apply text-primary border-t-2 border-primary pt-1;
            }
        }
    </style>

    <style>
        /* 平滑滚动 */
        html {
            scroll-behavior: smooth;
        }

        /* 导航栏滚动效果 */
        .header-scroll {
            transition: all 0.3s ease;
        }

        /* 搜索框动画 */
        .search-container {
            transition: all 0.3s ease;
        }

        /* Swiper样式 */
        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background-color: #fff;
            opacity: 0.5;
            transition: all 0.3s ease;
        }

        .swiper-pagination-bullet-active {
            background-color: #165DFF;
            opacity: 1;
            transform: scale(1.2);
        }

        /* 导航项悬停效果 */
        .grid-item:hover img {
            transform: scale(1.1);
        }

        .grid-item img {
            transition: transform 0.3s ease;
        }

        /* 底部导航栏固定在底部 */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #E5E6EB;
            z-indeX: 100;
        }

        /* 主内容区域底部留出空间 */
        main {
            padding-bottom: 80px;
        }
    </style>
</head>
<body class="font-inter bg-neutral min-h-screen">
<!-- 顶部搜索框 -->
<div class="search-container bg-white py-3 shadow-sm">
    <div class="container mx-auto px-4">
        <div class="relative">
            <input type="text"
                   placeholder="搜索政策、岗位或服务..."
                   class="w-full py-2 px-4 pl-10 rounded-full border border-gray-300 search-focus text-gray-700 placeholder-gray-400"
                   aria-label="搜索">
            <i class="fa fa-search absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
        </div>
    </div>
</div>

<main class="container mx-auto px-4 py-4">
    <!-- 顶部banner -->
    <div class="banner mb-6 rounded-xl overflow-hidden shadow-md">
        <div class="swiper mySwiper">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <img src="img/就业服务.jpg" alt="就业服务" class="w-full h-48 object-cover">
                </div>
                <div class="swiper-slide">
                    <img src="img/政策支持.jpg" alt="政策支持" class="w-full h-48 object-cover">
                </div>
                <div class="swiper-slide">
                    <img src="img/康复训练.jpg" alt="康复训练" class="w-full h-48 object-cover">
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
    </div>

    <!-- 主要功能模块 -->
    <div class="nav-grid grid grid-cols-4 gap-3 py-4">
        <a href="policy.html" class="grid-item flex flex-col items-center justify-center p-3 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300" data-id="1">
            <img src="img/国家政策.jpeg" class="w-12 h-12 object-cover rounded-full mb-1" />
            <span class="text-xs text-center">国家政策</span>
        </a>
        <a href="jobs.html" class="grid-item flex flex-col items-center justify-center p-3 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300" data-id="2">
            <img src="img/就业岗位.jpeg" class="w-12 h-12 object-cover rounded-full mb-1" />
            <span class="text-xs text-center">就业岗位</span>
        </a>
        <a href="assistance.html" class="grid-item flex flex-col items-center justify-center p-3 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300" data-id="3">
            <img src="img/就业辅助.jpeg" class="w-12 h-12 object-cover rounded-full mb-1" />
            <span class="text-xs text-center">就业辅助</span>
        </a>
        <a href="rehabilitation.html" class="grid-item flex flex-col items-center justify-center p-3 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300" data-id="4">
            <img src="img/康复训练.jpeg" class="w-12 h-12 object-cover rounded-full mb-1" />
            <span class="text-xs text-center">康复训练</span>
        </a>
    </div>

    <!-- 最新政策动态 -->
    <div class="content-list mt-4">
        <h2 class="list-title text-lg font-bold mb-3">最新政策动态</h2>
        <div class="list-item bg-white rounded-lg shadow-sm overflow-hidden mb-3">
            <div class="flex">
                <img src="img/政策2.jpg" alt="政策1" class="w-20 h-20 object-cover">
                <div class="item-info flex-1 p-3">
                    <h3 class="item-title text-sm font-medium">残疾人就业保障金减免政策</h3>
                    <p class="item-desc text-xs text-gray-500 mt-1">为促进残疾人就业，国家出台了一系列保障金减免政策...</p>
                </div>
            </div>
        </div>
        <div class="list-item bg-white rounded-lg shadow-sm overflow-hidden">
            <div class="flex">
                <img src="img/政策1.jpg" alt="政策2" class="w-20 h-20 object-cover">
                <div class="item-info flex-1 p-3">
                    <h3 class="item-title text-sm font-medium">残疾人就业创业扶持计划</h3>
                    <p class="item-desc text-xs text-gray-500 mt-1">为支持残疾人自主创业，提供创业培训、资金支持等多项服务...</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 就业数据统计 -->
    <div class="mt-6">
        <h2 class="text-lg font-bold mb-3">就业数据统计</h2>
        <div class="grid grid-cols-3 gap-2">
            <div class="bg-white rounded-lg shadow-sm p-3 text-center">
                <div class="text-lg font-bold text-primary">暂未开始</div>
                <p class="text-xs text-gray-500">已就业</p>
            </div>
            <div class="bg-white rounded-lg shadow-sm p-3 text-center">
                <div class="text-lg font-bold text-secondary">暂无</div>
                <p class="text-xs text-gray-500">合作企业</p>
            </div>
            <div class="bg-white rounded-lg shadow-sm p-3 text-center">
                <div class="text-lg font-bold text-accent">47</div>
                <p class="text-xs text-gray-500">培训课程</p>
            </div>
        </div>
    </div>

    <!-- 新增：关于我们介绍 -->
    <div class="mt-6 bg-white rounded-xl shadow-sm p-4">
        <h2 class="text-lg font-bold mb-3">关于我们</h2>
        <div class="prose prose-sm max-w-none">
            <p class="mb-3">
                残疾人就业服务平台致力于为残障人士提供全面的就业服务，包括就业信息、职业培训、创业指导和就业辅助等。我们的目标是帮助残障人士实现就业梦想，融入社会，创造价值。
            </p>
            <p class="mb-3">
                平台整合了政府、企业和社会资源，为残障人士提供多元化的就业机会。同时，我们也为企业提供专业的残障人士招聘服务，促进企业多元化发展。
            </p>
            <div class="grid grid-cols-2 gap-4 mt-4">
                <div class="bg-neutral p-3 rounded-lg">
                    <h3 class="font-medium mb-1">我们的使命</h3>
                    <p class="text-sm text-gray-600">促进残障人士就业，推动社会包容性发展</p>
                </div>
                <div class="bg-neutral p-3 rounded-lg">
                    <h3 class="font-medium mb-1">我们的愿景</h3>
                    <p class="text-sm text-gray-600">让每一位残障人士都能找到适合自己的工作</p>
                </div>
            </div>
        </div>
    </div>
</main>

<!-- 底部导航 -->
<div class="footer flex justify-around py-2">
    <div class="flex flex-col items-center">
        <a href="index.html" class="nav-active">
            <i class="fa fa-home text-lg"></i>
            <p class="text-xs mt-1">主页</p>
        </a>
    </div>
    <div class="flex flex-col items-center">
        <a href="profile.html">
            <i class="fa fa-user text-lg text-gray-400"></i>
            <p class="text-xs mt-1 text-gray-400">个人</p>
        </a>
    </div>
</div>

<!-- JavaScript -->
<script>
    // 初始化Swiper
    window.addEventListener('DOMContentLoaded', () => {
        const swiper = new Swiper('.mySwiper', {
            pagination: {
                el: '.swiper-pagination',
                clickable: true
            },
            autoplay: {
                delay: 3000,
                disableOnInteraction: false
            },
            effect: 'fade',
            fadeEffect: {
                crossFade: true
            }
        });
    });
</script>
</body>
</html>